using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SPTraceView
{
    public partial class frmViewer : Form
    {
        public frmViewer()
        {
            InitializeComponent();
        }

        public void LoadFile(string fileName)
        {
            webBrowser.Navigate(fileName);
        }

        private void frmViewer_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (e.CloseReason == CloseReason.UserClosing &&
                !frmMain.s_ShutDown)
            {
                Hide();
                e.Cancel = true;
            }
        }
    }
}